export const Debounce = (fn,t)=>{
    const delay = t || 500
    let timeout 
    return function (){
        const context = this
        const args = arguments
        if (!timeout) {
            timeout = setTimeout(()=>{
                timeout = null
                fn.apply(context,args)
            },delay)
        }
    }
}